﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.report.info
{
    public partial class delete : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = (Request.QueryString["referrer"] != null) ? Request.QueryString["referrer"].ToString() : "read_week.aspx";
            int commentId = (Request.QueryString["comment_id"] != null) ? int.Parse(Request.QueryString["comment_id"]) : 0;
            int num2 = (Request.QueryString["report_id"] != null) ? int.Parse(Request.QueryString["report_id"]) : 0;
            new ReportCommentDao().Delete(base.Conn, commentId, base.User.Identity.Name);
            base.CloseConn();
            Response.Redirect(str + "?report_id=" + num2.ToString());
        }
 

    }
}
